<?php

define('_CORE_PATH',dirname(__FILE__) . DIRECTORY_SEPARATOR);

define('_GEPARD_VERSION','0.1');

require_once _CORE_PATH . 'error.php';

require_once _CORE_PATH . 'abstract.php';

if( defined('_GEPARD_LINKER'))
{
	require_once _CORE_PATH . 'linkers' . DIRECTORY_SEPARATOR . _GEPARD_LINKER;
}
else
{
	require_once _CORE_PATH . 'linkers' . DIRECTORY_SEPARATOR . 'ondemand.php';
}

require_once _CORE_PATH . 'core.php';

final class Gepard extends gCore
{
	/**
	 * 
	 * Enter description here ...
	 * @var gInit
	 */
	private static $selfInstance = null;
	/**
	 * 
	 * Enter description here ...
	 */
	public static function getInstance()
	{
		if (self::$selfInstance == null)
		{
			self::$selfInstance = new Gepard();
		}
		return self::$selfInstance;
	}
	
	public static function init()
	{
		return self::getInstance();
	}
	
	function __construct()
	{		
		parent::__construct();
	}
	
	function __clone()
	{
		
	}
		
	function __toString()
	{
		return 'Gepard PHP: ' . _GEPARD_VERSION;
	}
	
}